Release 10.1A: OpenEdge Development:
Java Open Clients


General property accessor methods for
Connection objects

You can access Connection object properties by property name using the get and set general purpose methods. When you use these methods, you must call the correct accessor based on the data type of the property. Here is the syntax for these general methods:

Get property methods

public String getStringProperty(String propName) 
public int getIntProperty(String propName) 
public long getLongProperty(String propName) 
public boolean getBooleanProperty(String propName) 

Set property methods

public void setStringProperty(String propName, String propValue) 
public void setIntProperty(String propName, int propValue) 
public void setLongProperty(String propName, long propValue) 
public void setBooleanProperty(String propName, boolean propValue) 

propName

The property name. This can be any of the properties listed in the tables in the "Available properties" section.

propValue

The value for the property name.

For example, to set the PROGRESS.Session.initialConnections property to 5, use the following method to set an integer property:

ConnectObj.setIntProperty(“PROGRESS.Session.initialConnections”,5); 

Where ConnectObj is an instance of the com.progress.open4gl.proxy.Connection class.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095